package com.gds.wiki.cloud.memberCenter.client.member.model;

import com.gds.wiki.cloud.framework.common.model.CommonModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Member extends CommonModel {

    private Long id;
    @NotEmpty(message = "用户名不能为空")
    @Length(min = 5, max = 20, message = "用户名5-20长度")
    private String loginName;
    @NotEmpty(message = "密码不能为空")
    @Length(min = 5, max = 20, message = "密码6-20长度")
    private String passWord;


}
